package com.ruoyi.inventory.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 库存对象 biz_stock
 * 
 * @author ruoyi
 * @date 2025-06-16
 */
public class BizStock extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 库存ID */
    private Long stockId;

    /** 商品ID */
    @Excel(name = "商品ID")
    private Long productId;

    /** 当前库存 */
    @Excel(name = "当前库存")
    private Long currentQty;

    /** 库存下限 */
    @Excel(name = "库存下限")
    private Long minQty;

    /** 库存上限 */
    @Excel(name = "库存上限")
    private Long maxQty;

    /** 库位 */
    @Excel(name = "库位")
    private String location;

    /** 最后盘点时间 */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "最后盘点时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastCheckTime;

    public void setStockId(Long stockId) 
    {
        this.stockId = stockId;
    }

    public Long getStockId() 
    {
        return stockId;
    }

    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }

    public void setCurrentQty(Long currentQty) 
    {
        this.currentQty = currentQty;
    }

    public Long getCurrentQty() 
    {
        return currentQty;
    }

    public void setMinQty(Long minQty) 
    {
        this.minQty = minQty;
    }

    public Long getMinQty() 
    {
        return minQty;
    }

    public void setMaxQty(Long maxQty) 
    {
        this.maxQty = maxQty;
    }

    public Long getMaxQty() 
    {
        return maxQty;
    }

    public void setLocation(String location) 
    {
        this.location = location;
    }

    public String getLocation() 
    {
        return location;
    }

    public void setLastCheckTime(Date lastCheckTime) 
    {
        this.lastCheckTime = lastCheckTime;
    }

    public Date getLastCheckTime() 
    {
        return lastCheckTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("stockId", getStockId())
            .append("productId", getProductId())
            .append("currentQty", getCurrentQty())
            .append("minQty", getMinQty())
            .append("maxQty", getMaxQty())
            .append("location", getLocation())
            .append("lastCheckTime", getLastCheckTime())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
